/*
    Copyright j&g dev team(c). All Rights Reserved
    Notice: NONE
*/

#ifndef TILEMAN_H
#define TILEMAN_H

#include "interfaces.h"
#include "tile.h"
#include <vector>
namespace GoldenAges
{
class CTileManager : public IBaseEntity
{
protected:
    std::vector< std::vector<CTile *> > m_vvTiles;

    void AddTile(CTile *pTile);
public:
    CTileManager(void);
    virtual ~CTileManager(void);

    virtual void Think(const int &iElapsedTime);
    virtual void Render(SDL_Surface *pDestSurf);
    virtual TiXmlElement SaveData(void);
    virtual bool LoadData(TiXmlElement* pXMLData);

    CTile* GetTile(const int& iX, const int& iY);
};
}


#endif // TILEMAN_H

